<template>
  <div class="container">
    <h1>上传页</h1>
    <div class="boxWrapper">
      <el-button
          type="primary"
          icon="el-icon-plus"
          size="normal"
          @click="dialogAdd"
      >上传
      </el-button>
      <Upload ref="fileUploadDialog"></Upload>
    </div>

  </div>
</template>
<script>

import Upload from "@/components/Upload";

export default {
  components: {
    Upload,
  },
  methods: {
// 点击上传按钮打开一个dialog
    dialogAdd() {
      this.$refs.fileUploadDialog.show()
    }
  }
}
</script>
<style scoped>
.container {
  width: 100%;
  height: 100%;
}


</style>